package com.db.Totalmember;

import java.io.Reader;
import java.sql.SQLException;
import java.util.List;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class TotalMemberManager {

	private static SqlMapClient sqlmap;
	static{
		try {
			Reader reader = Resources.getResourceAsReader("com/db/config/SqlMapConfig.xml");
			sqlmap = SqlMapClientBuilder.buildSqlMapClient(reader);
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
	}
	
	public static List TotalMemberAllData() throws SQLException{
		return sqlmap.queryForList("TotalMemberAllData");
	}
	
}
